package ytdp.careagle.com.ytdp.entity;

import com.google.gson.Gson;

import java.util.List;

/**
 * Created by admin on 2017/10/10.
 */

public class PushCarEntity {


    /**
     * tips : 根据估价结果,为您推荐置换售价在19万到75万的车型
     * vehicleSeriesList : [{"id":1,"advertsing":"啦啦啦","bodyName":"三厢车","code":"series-690","coverImage":"http://owgu4sick.bkt.clouddn.com/o_1br38mkfa3997em9na1te738n7.png-image310center","name":"奥迪A8","shopId":1,"sellPrice":25}]
     */

    private String tips;
    private List<VehicleSeriesListBean> vehicleSeriesList;

    public static PushCarEntity objectFromData(String str) {

        return new Gson().fromJson(str, PushCarEntity.class);
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public List<VehicleSeriesListBean> getVehicleSeriesList() {
        return vehicleSeriesList;
    }

    public void setVehicleSeriesList(List<VehicleSeriesListBean> vehicleSeriesList) {
        this.vehicleSeriesList = vehicleSeriesList;
    }

    public static class VehicleSeriesListBean {
        /**
         * id : 1
         * advertsing : 啦啦啦
         * bodyName : 三厢车
         * code : series-690
         * coverImage : http://owgu4sick.bkt.clouddn.com/o_1br38mkfa3997em9na1te738n7.png-image310center
         * name : 奥迪A8
         * shopId : 1
         * sellPrice : 25
         */

        private int id;
        private String advertsing;
        private String bodyName;
        private String code;
        private String coverImage;
        private String name;
        private int shopId;
        private Double sellPrice;

        public static VehicleSeriesListBean objectFromData(String str) {

            return new Gson().fromJson(str, VehicleSeriesListBean.class);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAdvertsing() {
            return advertsing;
        }

        public void setAdvertsing(String advertsing) {
            this.advertsing = advertsing;
        }

        public String getBodyName() {
            return bodyName;
        }

        public void setBodyName(String bodyName) {
            this.bodyName = bodyName;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getCoverImage() {
            return coverImage;
        }

        public void setCoverImage(String coverImage) {
            this.coverImage = coverImage;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getShopId() {
            return shopId;
        }

        public void setShopId(int shopId) {
            this.shopId = shopId;
        }

        public Double getSellPrice() {
            if (sellPrice == null)
                sellPrice = 0d;
            return sellPrice;
        }

        public void setSellPrice(Double sellPrice) {
            this.sellPrice = sellPrice;
        }
    }
}
